﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
// ReSharper disable InconsistentNaming

namespace ChanTai.WebApi.Data
{
    /// <summary>
    /// 基础信息
    /// </summary>
    public class AcciMain: ApiCovent
    {
        /// <summary>
        /// 初始化默认值
        /// </summary>
        public AcciMain()
        {
            var tmorty= DateTime.Now.Date.AddDays(1);
            currency = "CNY";
            argueSolution = "2";
            codInd = "Y";
            blanketNo = "";
            companyCode = "";
            endDate =tmorty.AddYears(1).AddSeconds(-1).ToString("yyyy-MM-dd hh:mm:ss");
            startDate = tmorty.ToString("yyyy-MM-dd hh:mm:ss");
            operateDate = DateTime.Now.ToString("yyyy-MM-dd");
            issueCompany = "";
            operateDate = "";
            operatorCode = "";
            planCode = "";
            salesmanCode = "";
        }
        /// <summary>
        /// *争议解决方式(1:诉讼 2：仲裁)
        /// </summary>
        public string argueSolution { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string blanketNo { get; set; }

        /// <summary>
        /// *见费出单标志(Y:是 N：否)
        /// </summary>
        public string codInd { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string companyCode { get; set; }

        /// <summary>
        /// 币别(CNY)
        /// </summary>
        public string currency { get; set; }

        /// <summary>
        /// *终保日期(2014-11-16 00:00:00)
        /// </summary>
        public string endDate { get; set; }

        /// <summary>
        /// *起保日期(2014-11-16 00:00:00)
        /// </summary>
        public string startDate { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string issueCompany { get; set; }

        /// <summary>
        /// 投保日期
        /// </summary>
        public string operateDate { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string operatorCode { get; set; }

        /// <summary>
        /// *产品代码（套餐号）
        /// </summary>
        public string planCode { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string salesmanCode { get; set; }

        /// <summary>
        /// 佣金比例(小数2位)
        /// </summary>
        public double commissionRatio { get; set; }

        /// <summary>
        /// 短期费率（短期费率现改为非必填项，如套餐存在知道短期费率则必需要传，否则默认为100%）[8,2]
        /// </summary>
        public double shortRate { get; set; }

        /// <summary>
        /// *总保费[16,2}
        /// </summary>
        public double sumGrossPremium { get; set; }

        /// <summary>
        /// *总保额(保单的所有险别保额的汇总保额)[16,2}
        /// </summary>
        public double sumInsured { get; set; }
    }
}
